package com.dataseek.iot.core.response;

/**
 * @author cc
 * @Title: 返回结果
 * @Description: 返回结果
 * @date 2021/9/411:12 上午
 * @since 1.0
 */
public class ResponseEntity {
    /**
     * HTTP状态码
     */
    private Integer code=200;

    /**
     * 返回信息
     */
    private String msg;

    /**
     * 返回的数据
     */
    private Object data;

    public ResponseEntity() {
    }

    public ResponseEntity(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
